//
//  StateOrderTableViewCell.m
//  ShangAPP
//
//  Created by 徐番茄丶 on 16/1/23.
//  Copyright © 2016年 wangdao. All rights reserved.
//

#import "StateOrderTableViewCell.h"
#import "MyTools.h"
@implementation StateOrderTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //110
    _line1 = [[UIView alloc]initWithFrame:CGRectMake(50 * MYWIDTH, 0, 1.5, 20)];
    _line1.backgroundColor = UIColorFromRGB(0x333333);
    [self addSubview:_line1];
    
    _myImage = [[UIImageView alloc]initWithFrame:CGRectMake(50 * MYWIDTH - 20, 30, 40, 40)];
    _myImage.layer.cornerRadius = 15;
    [self addSubview:_myImage];
    
    _line2 = [[UIView alloc]initWithFrame:CGRectMake(50 * MYWIDTH, 80, 1.5, 20)];
    _line2.backgroundColor = UIColorFromRGB(0x333333);
    [self addSubview:_line2];
    
    _backview = [[UIView alloc]initWithFrame:CGRectMake(50 * MYWIDTH + 35, 10, WIDTH - (50 * MYWIDTH + 50), 85)];
    _backview.backgroundColor = [UIColor whiteColor];
    _backview.layer.borderColor = [UIColorFromRGB(0xefeff1) CGColor];
    _backview.layer.borderWidth = 1;
    _backview.layer.cornerRadius = 5;
    [self addSubview:_backview];
    
    _titlelab = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 120 * MYWIDTH, 20)];
    _titlelab.font = [UIFont systemFontOfSize:15];
    _titlelab.textColor = UIColorFromRGB(0x333333);
    [_backview addSubview:_titlelab];
    
    _timelab = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - (50 * MYWIDTH + 70) - 60, 10, 60, 20)];
    _timelab.font = [UIFont systemFontOfSize:14];
    _timelab.textColor = UIColorFromRGB(0x666666);
    _timelab.textAlignment = NSTextAlignmentRight;
    [_backview addSubview:_timelab];
    
    _messagelab = [[UILabel alloc]initWithFrame:CGRectMake(10, 30, WIDTH - (50 * MYWIDTH + 70), 50)];
    _messagelab.font = [UIFont systemFontOfSize:13];
    _messagelab.textColor = UIColorFromRGB(0x666666);
    _messagelab.numberOfLines = 2;
    _messagelab.textAlignment = NSTextAlignmentLeft;
    [_backview addSubview:_messagelab];
    
    
    _phonebtn = [[UIButton alloc]initWithFrame:CGRectMake(WIDTH - 60 * MYWIDTH, 50, 30, 30)];
    [self addSubview:_phonebtn];
    
    self.backgroundColor = UIColorFromRGB(0xefeff1);
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end

